package com.summer.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer502
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "tb_vote")

public class TbVote implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 投票id
     */
    @TableId(value = "vote_id", type = IdType.AUTO)
    private Integer voteId;

    /**
     * 活动id
     */
    @TableField("activity_id")
    private Integer activityId;

    /**
     * 投票人id(用户id)
     */
    @TableField("vote_user_id")
    private Integer voteUserId;

    /**
     * 投票内容
     */
    @TableField("vote_content")
    private String voteContent;

    /**
     * 创建时间
     */
    @ApiModelProperty( value = "创建时间")

    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "update_time", value = "修改时间")

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;


    /**
     * 是否删除
     */
    @TableField("is_delete")
    private Integer isDelete;



}
